package com.web.mapper;

import com.web.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {
    @Select("select username,secret from user where username = #{uername} and secret = #{secret}")
    public User queryUserByUsernameAndSecret(String username, String secret);
    @Select("select username,secret from user where username = #{username}")
    public User queryUserByUsername(String username);
}
